package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;

import java.util.List;

public interface CheckItemDao {
    //新增检查项
    public void add(CheckItem checkItem);
    //检查项分页查询
    //selectByCondition与sqlxml的id保持一致
    public Page<CheckItem> selectByCondition(String queryString);

    ////判断当前的检查项是否关联检查组
    public long findCountByCheckItemId(Integer id);
    public void deleteById(Integer id);

    //检查项编辑
    public void edit(CheckItem checkItem);
    //检查项编辑回写
    public CheckItem findById(Integer id);
    //检查组查询所有
    public List<CheckItem> findAll();
}
